package com.acminds.fotoporter.persistence.entities;

// Generated Jan 14, 2012 10:31:36 AM by Hibernate Tools 3.4.0.CR1

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;
import javax.persistence.OneToMany;

import com.acminds.fotoporter.persistence.dto.*;

/**
 * ItemOrdered generated by customhbm2java
 */
@MappedSuperclass
public abstract class AbstractItemOrdered extends
		com.acminds.fotoporter.persistence.BaseDTO implements
		java.io.Serializable {

	private static final long serialVersionUID = 1L;

	private Integer itemOrderedId;
	private Image image;
	private OrderRequest orderRequest;
	private String itemName;
	private String itemDesc;
	private BigDecimal basePrice;
	private int status;
	private int categoryName;
	private int quantity;
	private BigDecimal totalItemPrice;
	private List<FeatureSelected> featureSelecteds = new ArrayList<FeatureSelected>(
			0);

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ITEM_ORDERED_ID", unique = true, nullable = false)
	public Integer getItemOrderedId() {
		return this.itemOrderedId;
	}

	public void setItemOrderedId(Integer itemOrderedId) {
		this.itemOrderedId = itemOrderedId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "IMAGE_ID")
	public Image getImage() {
		return this.image;
	}

	public void setImage(Image image) {
		this.image = image;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ORDER_REQUEST_ID", nullable = false)
	public OrderRequest getOrderRequest() {
		return this.orderRequest;
	}

	public void setOrderRequest(OrderRequest orderRequest) {
		this.orderRequest = orderRequest;
	}

	@Column(name = "ITEM_NAME", nullable = false, length = 60)
	public String getItemName() {
		return this.itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	@Column(name = "ITEM_DESC", length = 100)
	public String getItemDesc() {
		return this.itemDesc;
	}

	public void setItemDesc(String itemDesc) {
		this.itemDesc = itemDesc;
	}

	@Column(name = "BASE_PRICE", nullable = false, precision = 8)
	public BigDecimal getBasePrice() {
		return this.basePrice;
	}

	public void setBasePrice(BigDecimal basePrice) {
		this.basePrice = basePrice;
	}

	@Column(name = "STATUS", nullable = false)
	public int getStatus() {
		return this.status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	@Column(name = "CATEGORY_NAME", nullable = false)
	public int getCategoryName() {
		return this.categoryName;
	}

	public void setCategoryName(int categoryName) {
		this.categoryName = categoryName;
	}

	@Column(name = "QUANTITY", nullable = false)
	public int getQuantity() {
		return this.quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	@Column(name = "TOTAL_ITEM_PRICE", nullable = false, precision = 8)
	public BigDecimal getTotalItemPrice() {
		return this.totalItemPrice;
	}

	public void setTotalItemPrice(BigDecimal totalItemPrice) {
		this.totalItemPrice = totalItemPrice;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "itemOrdered")
	public List<FeatureSelected> getFeatureSelecteds() {
		return this.featureSelecteds;
	}

	public void setFeatureSelecteds(List<FeatureSelected> featureSelecteds) {
		this.featureSelecteds = featureSelecteds;
	}

}
